<template>
<div>
  <h2>我是Count组件</h2>
  <button @click="handle">点击累加count</button>
  <button @click="off">解绑</button>
</div>
</template>


<script>
export default {
  name:"Count",
  methods:{
    handle() {
      this.$emit("changeCount",2)
    },
    off(){
      // this.$off("changeCount")
      this.$off(["changeCount"])
    }
  }
}
</script>


<style></style>